dnd: Remove x/y coordinates from drag-data-received
authorBenjamin Otte <otte@redhat.com>
Tue, 5 Dec 2017 03:06:20 +0000 (04:06 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 5 Dec 2017 04:29:00 +0000 (05:29 +0100)
This is in preparation of using input streams to show that these
coordinates aren't needed most of the time and can otherwise be saved
during GtkWidget::drag-drop.

22 files changed:
demos/gtk-demo/clipboard.c
gdk/gdkclipboard.c
gdk/gdkclipboard.h
gtk/gtkcalendar.c
gtk/gtkcolorswatch.c
gtk/gtkdnd.c
gtk/gtkentry.c
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserwidget.c
gtk/gtkiconview.c
gtk/gtkmarshalers.list
gtk/gtknotebook.c
gtk/gtktextview.c
gtk/gtktreeview.c
gtk/gtkwidget.c
gtk/gtkwidget.h
tests/testdnd.c
tests/testdnd2.c
tests/testimage.c
tests/testlist3.c
tests/testnotebookdnd.c
tests/testtreednd.c

index e8934ea79f238a86609058e0e631c12946f1d084..354af06cbb2ce7bbd38040c3575f2388a94b5357 100644 (file)
@@ -148,8 +148,6 @@ drag_data_get (GtkWidget        *widget,
 static void
 drag_data_received (GtkWidget        *widget,
                     GdkDragContext   *context,
-                    gint              x,
-                    gint              y,
                     GtkSelectionData *selection_data,
                     guint32           time,
                     gpointer          data)
index 2832fcad5053bb67ec001cf40fefce642a352a53..befbb08aef6ae2707120484b783b540a96997c78 100644 (file)
@@ -30,6 +30,8 @@
 #include "gdkpipeiostreamprivate.h"
 #include "gdktexture.h"
 
+#include <gobject/gvaluecollector.h>
+
 /**
  * SECTION:gdkclipboard
  * @Short_description: Share data between applications for Copy-and-Paste
@@ -1233,32 +1235,104 @@ gdk_clipboard_set_content (GdkClipboard       *clipboard,
 }
 
 /**
- * gdk_clipboard_set_text:
+ * gdk_clipboard_set:
  * @clipboard: a #GdkClipboard
- * @text: Text to put into the clipboard
+ * @type: type of value to set
+ * @...: value contents conforming to @type
  *
- * Puts the given @text into the clipboard.
+ * Sets the clipboard to contain the value collected from the given
+ * varargs.
  **/
 void
-gdk_clipboard_set_text (GdkClipboard *clipboard,
-                        const char   *text)
+gdk_clipboard_set (GdkClipboard          *clipboard,
+                   GType                  type,
+                   ...)
+{
+  va_list args;
+                          
+  g_return_if_fail (GDK_IS_CLIPBOARD (clipboard));
+
+  va_start (args, type);
+  gdk_clipboard_set_valist (clipboard, type, args);
+  va_end (args);
+}
+
+/**
+ * gdk_clipboard_set_valist: (skip)
+ * @clipboard: a #GdkClipboard
+ * @type: type of value to set
+ * @args: varargs containing the value of @type
+ *
+ * Sets the clipboard to contain the value collected from the given
+ * @args.
+ **/
+void
+gdk_clipboard_set_valist (GdkClipboard *clipboard,
+                          GType         type,
+                          va_list       args)
 {
-  GdkContentProvider *provider;
   GValue value = G_VALUE_INIT;
+  char *error;
 
   g_return_if_fail (GDK_IS_CLIPBOARD (clipboard));
 
-  g_value_init (&value, G_TYPE_STRING);
-  g_value_set_string (&value, text);
-  provider = gdk_content_provider_new_for_value (&value);
+  G_VALUE_COLLECT_INIT (&value, type,
+                        args, G_VALUE_NOCOPY_CONTENTS,
+                        &error);
+  if (error)
+    {
+      g_warning ("%s: %s", G_STRLOC, error);
+      g_free (error);
+      /* we purposely leak the value here, it might not be
+       * in a sane state if an error condition occoured
+       */
+      return;
+    }
+
+  gdk_clipboard_set_value (clipboard, &value);
   g_value_unset (&value);
+}
+
+/**
+ * gdk_clipboard_set_value: (rename-to gdk_clipboard_set)
+ * @clipboard: a #GdkClipboard
+ * @value: a #GValue to set
+ *
+ * Sets the @clipboard to contain the given @value.
+ **/
+void
+gdk_clipboard_set_value (GdkClipboard *clipboard,
+                         const GValue *value)
+{
+  GdkContentProvider *provider;
+
+  g_return_if_fail (GDK_IS_CLIPBOARD (clipboard));
+  g_return_if_fail (G_IS_VALUE (value));
+
+  provider = gdk_content_provider_new_for_value (value);
 
   gdk_clipboard_set_content (clipboard, provider);
   g_object_unref (provider);
 }
 
 /**
- * gdk_clipboard_set_texture:
+ * gdk_clipboard_set_text: (skip)
+ * @clipboard: a #GdkClipboard
+ * @text: Text to put into the clipboard
+ *
+ * Puts the given @text into the clipboard.
+ **/
+void
+gdk_clipboard_set_text (GdkClipboard *clipboard,
+                        const char   *text)
+{
+  g_return_if_fail (GDK_IS_CLIPBOARD (clipboard));
+
+  gdk_clipboard_set (clipboard, G_TYPE_STRING, text);
+}
+
+/**
+ * gdk_clipboard_set_texture: (skip)
  * @clipboard: a #GdkClipboard
  * @texture: a #GdkTexture to put into the clipboard
  *
@@ -1268,18 +1342,9 @@ void
 gdk_clipboard_set_texture (GdkClipboard *clipboard,
                            GdkTexture   *texture)
 {
-  GdkContentProvider *provider;
-  GValue value = G_VALUE_INIT;
-
   g_return_if_fail (GDK_IS_CLIPBOARD (clipboard));
   g_return_if_fail (GDK_IS_TEXTURE (texture));
 
-  g_value_init (&value, GDK_TYPE_TEXTURE);
-  g_value_set_object (&value, texture);
-  provider = gdk_content_provider_new_for_value (&value);
-  g_value_unset (&value);
-
-  gdk_clipboard_set_content (clipboard, provider);
-  g_object_unref (provider);
+  gdk_clipboard_set (clipboard, GDK_TYPE_TEXTURE, texture);
 }
 
index 02b13b01c897affae3506269549cec7fd3b5a33a..4f338b323bc9d816cef448cb09ed14a761ba7e76 100644 (file)
@@ -103,6 +103,17 @@ GDK_AVAILABLE_IN_3_94
 gboolean                gdk_clipboard_set_content       (GdkClipboard          *clipboard,
                                                          GdkContentProvider    *provider);
 GDK_AVAILABLE_IN_3_94
+void                    gdk_clipboard_set               (GdkClipboard          *clipboard,
+                                                         GType                  type,
+                                                         ...);
+GDK_AVAILABLE_IN_3_94
+void                    gdk_clipboard_set_valist        (GdkClipboard          *clipboard,
+                                                         GType                  type,
+                                                         va_list                args);
+GDK_AVAILABLE_IN_3_94
+void                    gdk_clipboard_set_value         (GdkClipboard          *clipboard,
+                                                         const GValue          *value);
+GDK_AVAILABLE_IN_3_94
 void                    gdk_clipboard_set_text          (GdkClipboard          *clipboard,
                                                          const char            *text);
 GDK_AVAILABLE_IN_3_94
index 1932ebfe708c6e208491bcf807459d649cc3a29d..b35bb4aa02301aae4373c47187dbd64eb02c1089 100644 (file)
@@ -307,8 +307,6 @@ static void     gtk_calendar_drag_data_get      (GtkWidget        *widget,
                                                  guint             time);
 static void     gtk_calendar_drag_data_received (GtkWidget        *widget,
                                                  GdkDragContext   *context,
-                                                 gint              x,
-                                                 gint              y,
                                                  GtkSelectionData *selection_data,
                                                  guint             time);
 static gboolean gtk_calendar_drag_motion        (GtkWidget        *widget,
@@ -2980,8 +2978,6 @@ gtk_calendar_drag_drop (GtkWidget      *widget,
 static void
 gtk_calendar_drag_data_received (GtkWidget        *widget,
                                  GdkDragContext   *context,
-                                 gint              x,
-                                 gint              y,
                                  GtkSelectionData *selection_data,
                                  guint             time)
 {
index 12e0f3acd17e5e736d5a235dac4c299eb3f8a877..7123c793290852d472e0d31cfe9525196b6f3c1c 100644 (file)
@@ -210,8 +210,6 @@ swatch_drag_data_get (GtkWidget        *widget,
 static void
 swatch_drag_data_received (GtkWidget        *widget,
                            GdkDragContext   *context,
-                           gint              x,
-                           gint              y,
                            GtkSelectionData *selection_data,
                            guint             time)
 {
index 5d132c10740bd33fa54821a3abe97cb96fb96c76..1526a3fc6b8695a0b2db8a304bcb7caa9fd1fb7a 100644 (file)
@@ -83,7 +83,6 @@ struct _GtkDragDestInfo
 {
   GtkWidget         *widget;              /* Widget in which drag is in */
   GdkDragContext    *context;             /* Drag context */
-  gint               drop_x, drop_y;      /* Position of drop */
 };
 
 #define DROP_ABORT_TIME 300000
@@ -594,14 +593,12 @@ gtk_drag_selection_received (GtkWidget        *widget,
                              gpointer          data)
 {
   GdkDragContext *context;
-  GtkDragDestInfo *info;
   GtkWidget *drop_widget;
   GdkAtom target;
 
   drop_widget = data;
 
   context = g_object_get_data (G_OBJECT (widget), "drag-context");
-  info = gtk_drag_get_dest_info (context, FALSE);
 
   target = gtk_selection_data_get_target (selection_data);
   if (target == gdk_atom_intern_static_string ("DELETE"))
@@ -622,7 +619,7 @@ gtk_drag_selection_received (GtkWidget        *widget,
                   gtk_selection_data_get_length (selection_data) >= 0)
                 g_signal_emit_by_name (drop_widget,
                                        "drag-data-received",
-                                       context, info->drop_x, info->drop_y,
+                                       context,
                                        selection_data,
                                        time);
             }
@@ -631,7 +628,7 @@ gtk_drag_selection_received (GtkWidget        *widget,
         {
           g_signal_emit_by_name (drop_widget,
                                  "drag-data-received",
-                                 context, info->drop_x, info->drop_y,
+                                 context,
                                  selection_data,
                                  time);
         }
@@ -924,9 +921,6 @@ gtk_drag_dest_drop (GtkWidget      *widget,
   info = gtk_drag_get_dest_info (context, FALSE);
   g_return_val_if_fail (info != NULL, FALSE);
 
-  info->drop_x = x;
-  info->drop_y = y;
-
   if (site->flags & GTK_DEST_DEFAULT_DROP)
     {
       GdkAtom target = gtk_drag_dest_find_target (widget, context, NULL);
index 9230fa0006ae682bd96ee703f01b1bd3db32dbc7..f5f9674a66e100a8cd9dca459c3d504ffb55f7bc 100644 (file)
@@ -225,6 +225,7 @@ struct _GtkEntryPrivate
   gint          dnd_position;               /* In chars, -1 == no DND cursor */
   gint          drag_start_x;
   gint          drag_start_y;
+  gint          drop_position;              /* where the drop should happen */
   gint          insert_pos;
   gint          selection_bound;
   gint          scroll_offset;
@@ -453,8 +454,6 @@ static void     gtk_entry_drag_leave         (GtkWidget        *widget,
                                              guint             time);
 static void     gtk_entry_drag_data_received (GtkWidget        *widget,
                                              GdkDragContext   *context,
-                                             gint              x,
-                                             gint              y,
                                              GtkSelectionData *selection_data,
                                              guint             time);
 static void     gtk_entry_drag_data_get      (GtkWidget        *widget,
@@ -8918,7 +8917,10 @@ gtk_entry_drag_drop  (GtkWidget        *widget,
     target = gtk_drag_dest_find_target (widget, context, NULL);
 
   if (target != NULL)
-    gtk_drag_get_data (widget, context, target, time);
+    {
+      priv->drop_position = gtk_entry_find_position (entry, x + priv->scroll_offset);
+      gtk_drag_get_data (widget, context, target, time);
+    }
   else
     gtk_drag_finish (context, FALSE, FALSE, time);
   
@@ -8992,8 +8994,6 @@ gtk_entry_drag_motion (GtkWidget        *widget,
 static void
 gtk_entry_drag_data_received (GtkWidget        *widget,
                              GdkDragContext   *context,
-                             gint              x,
-                             gint              y,
                              GtkSelectionData *selection_data,
                              guint             time)
 {
@@ -9006,19 +9006,16 @@ gtk_entry_drag_data_received (GtkWidget        *widget,
 
   if (str && priv->editable)
     {
-      gint new_position;
       gint sel1, sel2;
       gint length = -1;
 
       if (priv->truncate_multiline)
         length = truncate_multiline (str);
 
-      new_position = gtk_entry_find_position (entry, x + priv->scroll_offset);
-
       if (!gtk_editable_get_selection_bounds (editable, &sel1, &sel2) ||
-         new_position < sel1 || new_position > sel2)
+         priv->drop_position < sel1 || priv->drop_position > sel2)
        {
-         gtk_editable_insert_text (editable, str, length, &new_position);
+         gtk_editable_insert_text (editable, str, length, &priv->drop_position);
        }
       else
        {
index e3b26a7f68c7fb8ea381801c700690fd8a142997..dfdad301ea0c51f8612613773de881e928c9f4bb 100644 (file)
@@ -253,8 +253,6 @@ static void     gtk_file_chooser_button_finalize           (GObject          *ob
 static void     gtk_file_chooser_button_destroy            (GtkWidget        *widget);
 static void     gtk_file_chooser_button_drag_data_received (GtkWidget        *widget,
                                                            GdkDragContext   *context,
-                                                           gint              x,
-                                                           gint              y,
                                                            GtkSelectionData *data,
                                                            guint             drag_time);
 static void     gtk_file_chooser_button_show               (GtkWidget        *widget);
@@ -1212,8 +1210,6 @@ dnd_select_folder_get_info_cb (GCancellable *cancellable,
 static void
 gtk_file_chooser_button_drag_data_received (GtkWidget       *widget,
                                            GdkDragContext   *context,
-                                           gint              x,
-                                           gint              y,
                                            GtkSelectionData *data,
                                            guint             drag_time)
 {
@@ -1225,7 +1221,6 @@ gtk_file_chooser_button_drag_data_received (GtkWidget          *widget,
   if (GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->drag_data_received != NULL)
     GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->drag_data_received (widget,
                                                                                 context,
-                                                                                x, y,
                                                                                 data,
                                                                                 drag_time);
 
index 4602fde7ad4206543cab064df0bdb27337e4cccd..1d99534d3533e7473b036d7a0bbb2f49bdcd9415 100644 (file)
@@ -1937,8 +1937,6 @@ out:
 static void
 file_list_drag_data_received_cb (GtkWidget        *widget,
                                  GdkDragContext   *context,
-                                 gint              x,
-                                 gint              y,
                                  GtkSelectionData *selection_data,
                                  guint             time_,
                                  gpointer          user_data)
index 8a7b2595a6ac8a9be1cd404eea8c8ec5e247f636..70e9359bf0f2a0a3123c97ac6a9fce8eb1007045 100644 (file)
@@ -299,8 +299,6 @@ static gboolean gtk_icon_view_drag_drop          (GtkWidget        *widget,
                                                   guint             time);
 static void     gtk_icon_view_drag_data_received (GtkWidget        *widget,
                                                   GdkDragContext   *context,
-                                                  gint              x,
-                                                  gint              y,
                                                   GtkSelectionData *selection_data,
                                                   guint             time);
 static gboolean gtk_icon_view_maybe_begin_drag   (GtkIconView             *icon_view,
@@ -6464,8 +6462,6 @@ gtk_icon_view_drag_drop (GtkWidget      *widget,
 static void
 gtk_icon_view_drag_data_received (GtkWidget        *widget,
                                  GdkDragContext   *context,
-                                 gint              x,
-                                 gint              y,
                                  GtkSelectionData *selection_data,
                                  guint             time)
 {
index 8a50b8a523312dcce052f830ad58ccbd30538ba1..f95e06325d5933fb541570cfe8245db49f5e131d 100644 (file)
@@ -81,7 +81,6 @@ VOID:OBJECT,FLAGS
 VOID:OBJECT,INT
 VOID:OBJECT,INT,OBJECT
 VOID:OBJECT,INT,INT
-VOID:OBJECT,INT,INT,BOXED,UINT
 VOID:OBJECT,OBJECT
 VOID:OBJECT,POINTER
 VOID:OBJECT,POINTER,INT
index 1901ed5727558f2696464ad225690387a76114c8..3d565fdd737674a2096c95b6ac0a92fb813dccde 100644 (file)
@@ -405,8 +405,6 @@ static void gtk_notebook_drag_data_get       (GtkWidget        *widget,
                                               guint             time);
 static void gtk_notebook_drag_data_received  (GtkWidget        *widget,
                                               GdkDragContext   *context,
-                                              gint              x,
-                                              gint              y,
                                               GtkSelectionData *data,
                                               guint             time);
 static void gtk_notebook_direction_changed   (GtkWidget        *widget,
@@ -523,9 +521,7 @@ static gboolean focus_child_in (GtkNotebook      *notebook,
 static void stop_scrolling (GtkNotebook *notebook);
 static void do_detach_tab  (GtkNotebook *from,
                             GtkNotebook *to,
-                            GtkWidget   *child,
-                            gint         x,
-                            gint         y);
+                            GtkWidget   *child);
 
 /* GtkBuildable */
 static void gtk_notebook_buildable_init           (GtkBuildableIface *iface);
@@ -2980,7 +2976,7 @@ gtk_notebook_drag_end (GtkWidget      *widget,
                      priv->detached_tab->child, x, y, &dest_notebook);
 
       if (dest_notebook)
-        do_detach_tab (notebook, dest_notebook, priv->detached_tab->child, 0, 0);
+        do_detach_tab (notebook, dest_notebook, priv->detached_tab->child);
 
       priv->rootwindow_drop = FALSE;
     }
@@ -3030,7 +3026,7 @@ gtk_notebook_drag_failed (GtkWidget      *widget,
                      priv->detached_tab->child, x, y, &dest_notebook);
 
       if (dest_notebook)
-        do_detach_tab (notebook, dest_notebook, priv->detached_tab->child, 0, 0);
+        do_detach_tab (notebook, dest_notebook, priv->detached_tab->child);
 
       return TRUE;
     }
@@ -3171,6 +3167,7 @@ gtk_notebook_drag_drop (GtkWidget        *widget,
                         gint              y,
                         guint             time)
 {
+  GtkNotebook *notebook = GTK_NOTEBOOK (widget);
   GdkAtom target, tab_target;
 
   target = gtk_drag_dest_find_target (widget, context, NULL);
@@ -3178,6 +3175,8 @@ gtk_notebook_drag_drop (GtkWidget        *widget,
 
   if (target == tab_target)
     {
+      notebook->priv->mouse_x = x;
+      notebook->priv->mouse_y = y;
       gtk_drag_get_data (widget, context, target, time);
       return TRUE;
     }
@@ -3209,11 +3208,9 @@ gtk_notebook_detach_tab (GtkNotebook *notebook,
 }
 
 static void
-do_detach_tab (GtkNotebook     *from,
-               GtkNotebook     *to,
-               GtkWidget       *child,
-               gint             x,
-               gint             y)
+do_detach_tab (GtkNotebook *from,
+               GtkNotebook *to,
+               GtkWidget   *child)
 {
   GtkNotebookPrivate *to_priv = to->priv;
   GtkWidget *tab_label, *menu_label;
@@ -3243,9 +3240,6 @@ do_detach_tab (GtkNotebook     *from,
 
   gtk_notebook_detach_tab (from, child);
 
-  to_priv->mouse_x = x;
-  to_priv->mouse_y = y;
-
   element = get_drop_position (to);
   page_num = g_list_position (to_priv->children, element);
   gtk_notebook_insert_page_menu (to, child, tab_label, menu_label, page_num);
@@ -3298,8 +3292,6 @@ gtk_notebook_drag_data_get (GtkWidget        *widget,
 static void
 gtk_notebook_drag_data_received (GtkWidget        *widget,
                                  GdkDragContext   *context,
-                                 gint              x,
-                                 gint              y,
                                  GtkSelectionData *data,
                                  guint             time)
 {
@@ -3315,7 +3307,7 @@ gtk_notebook_drag_data_received (GtkWidget        *widget,
     {
       child = (void*) gtk_selection_data_get_data (data);
 
-      do_detach_tab (GTK_NOTEBOOK (source_widget), notebook, *child, x, y);
+      do_detach_tab (GTK_NOTEBOOK (source_widget), notebook, *child);
       gtk_drag_finish (context, TRUE, FALSE, time);
     }
   else
@@ -7130,8 +7122,6 @@ gtk_notebook_get_tab_detachable (GtkNotebook *notebook,
  *  static void
  *  on_drag_data_received (GtkWidget        *widget,
  *                         GdkDragContext   *context,
- *                         gint              x,
- *                         gint              y,
  *                         GtkSelectionData *data,
  *                         guint             time,
  *                         gpointer          user_data)
index 04806c0731bbffea9e784ff92dcbd4b883fc6b09..8b7b590b1f74ca105e23653f7bd538445e14d9e9 100644 (file)
@@ -457,8 +457,6 @@ static gboolean gtk_text_view_drag_drop          (GtkWidget        *widget,
                                                   guint             time);
 static void     gtk_text_view_drag_data_received (GtkWidget        *widget,
                                                   GdkDragContext   *context,
-                                                  gint              x,
-                                                  gint              y,
                                                   GtkSelectionData *selection_data,
                                                   guint             time);
 
@@ -8081,8 +8079,6 @@ insert_text_data (GtkTextView      *text_view,
 static void
 gtk_text_view_drag_data_received (GtkWidget        *widget,
                                   GdkDragContext   *context,
-                                  gint              x,
-                                  gint              y,
                                   GtkSelectionData *selection_data,
                                   guint             time)
 {
index e21ea17372b7bf8f722e84dbd04d345ec4366777..40771cdab136bc6d608f987526f600fc442748be 100644 (file)
@@ -651,8 +651,6 @@ static gboolean gtk_tree_view_drag_drop          (GtkWidget        *widget,
                                                   guint             time);
 static void     gtk_tree_view_drag_data_received (GtkWidget        *widget,
                                                   GdkDragContext   *context,
-                                                  gint              x,
-                                                  gint              y,
                                                   GtkSelectionData *selection_data,
                                                   guint             time);
 
@@ -7806,9 +7804,6 @@ gtk_tree_view_drag_drop (GtkWidget        *widget,
 static void
 gtk_tree_view_drag_data_received (GtkWidget        *widget,
                                   GdkDragContext   *context,
-                                 /* coordinates relative to the widget */
-                                  gint              x,
-                                  gint              y,
                                   GtkSelectionData *selection_data,
                                   guint             time)
 {
index 769227e61d3d53984f2887bd935e015f9c2f2e7b..23d9c2f7ae8a956d621ff3fad464ba372fdb9e17 100644 (file)
@@ -2951,11 +2951,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
                  G_SIGNAL_RUN_LAST,
                  G_STRUCT_OFFSET (GtkWidgetClass, drag_data_received),
                  NULL, NULL,
-                 _gtk_marshal_VOID__OBJECT_INT_INT_BOXED_UINT,
-                 G_TYPE_NONE, 5,
+                 _gtk_marshal_VOID__OBJECT_BOXED_UINT,
+                 G_TYPE_NONE, 3,
                  GDK_TYPE_DRAG_CONTEXT,
-                 G_TYPE_INT,
-                 G_TYPE_INT,
                  GTK_TYPE_SELECTION_DATA | G_SIGNAL_TYPE_STATIC_SCOPE,
                  G_TYPE_UINT);
 
index ac33083544e394d94b40e52e0511f358cb5f76a5..e0b68690d5cc2fe728055830699c1765a9273a69 100644 (file)
@@ -425,8 +425,6 @@ struct _GtkWidgetClass
                                    guint               time_);
   void     (* drag_data_received)  (GtkWidget          *widget,
                                    GdkDragContext     *context,
-                                   gint                x,
-                                   gint                y,
                                    GtkSelectionData   *selection_data,
                                    guint               time_);
   gboolean (* drag_failed)         (GtkWidget          *widget,
index e2f81e463bb4c26fa00652e3e08f8239fecc1597..cbc9cd31c0cce23c1b40ef21ea3a6caa7aedccac 100644 (file)
@@ -367,8 +367,6 @@ target_drag_drop       (GtkWidget          *widget,
 void  
 target_drag_data_received  (GtkWidget          *widget,
                            GdkDragContext     *context,
-                           gint                x,
-                           gint                y,
                            GtkSelectionData   *selection_data,
                            guint               info,
                            guint               time)
@@ -387,8 +385,6 @@ target_drag_data_received  (GtkWidget          *widget,
 void  
 label_drag_data_received  (GtkWidget          *widget,
                            GdkDragContext     *context,
-                           gint                x,
-                           gint                y,
                            GtkSelectionData   *selection_data,
                            guint               info,
                            guint               time)
index bcd028d86c9de8308b83730a7a4de7ec3c27ac8c..17d6fee9cc24c29ccc28f0b3101072041a3aff74 100644 (file)
@@ -181,8 +181,6 @@ image_drag_data_get (GtkWidget        *widget,
 static void
 image_drag_data_received (GtkWidget        *widget,
                           GdkDragContext   *context,
-                          gint              x,
-                          gint              y,
                           GtkSelectionData *selection_data,
                           guint32           time,
                           gpointer          data)
index 56467b1671d3e85c4704767f20d0ff2a965bed74..2c221087e7ddaa17a32308f43b84b299cdcbee57 100644 (file)
@@ -47,8 +47,6 @@ drag_data_get  (GtkWidget        *widget,
 static void
 drag_data_received (GtkWidget        *widget,
                    GdkDragContext   *context,
-                   gint              x,
-                   gint              y,
                    GtkSelectionData *selection_data,
                    guint             info,
                    guint32           time,
index d4ef53828d85ab6ddd9198cfbc40c009a158da71..9d2f6f10b5e610d6fdb82fb47d6a353a7c0f495c 100644 (file)
@@ -51,8 +51,6 @@ drag_data_get (GtkWidget        *widget,
 static void
 drag_data_received (GtkWidget        *widget,
                     GdkDragContext   *context,
-                    gint              x,
-                    gint              y,
                     GtkSelectionData *selection_data,
                     guint32           time,
                     gpointer          data)
index 6c4c2ad95e2d958a054f60d74d39700c83de90aa..26f7693ca53f073a3fc8adcbb1c6bcb55b4e3b64 100644 (file)
@@ -123,8 +123,6 @@ remove_in_idle (gpointer data)
 static void
 on_button_drag_data_received (GtkWidget        *widget,
                               GdkDragContext   *context,
-                              gint              x,
-                              gint              y,
                               GtkSelectionData *data,
                               guint             time,
                               gpointer          user_data)
index 4f7c3222701c5d74f41bb49c386c252dece1f5a8..791cdd395798ee30aade43ffea2cc40775af4012 100644 (file)
@@ -91,7 +91,6 @@ get_dragsource (void)
 static void
 drag_data_received (GtkWidget *widget,
                     GdkDragContext *context,
-                    gint x, gint y,
                     GtkSelectionData *selda,
                     guint time,
                     gpointer dada)